var app=angular.module('tmsApp', ['ngRoute'])

    .config(function ($routeProvider) {
        $routeProvider
            .when('/login', {
                templateUrl: 'modules/login/login.html',
                controller:'LoginCtrl'
            })
            .when('/register',{
                templateUrl:'modules/register/index.html',
                controller:'registerCtrl'
            })
            .when('/success',{
                templateUrl:'modules/success/index.html',
                controller:'successCtrl'
            })
            .otherwise({
                redirectTo: '/login'
            });
    });
















    /*.run(['$location',function($location){
        $location.path('/login').replace();
    }])
*/